package com.jhs.kjs.service;

import java.util.List;

import com.jhs.kjs.dto.CarDTO;
import com.jhs.kjs.dto.CustomerDTO;
import com.jhs.kjs.dto.CustomerUserDTO;
import com.jhs.kjs.dto.emma.EmSmtTranDTO;
import com.jhs.kjs.dto.emma.EmmaDTO;


public interface IEmmaCommonService {
	public List<EmSmtTranDTO> test() throws Exception;

	public void sendSMS(EmSmtTranDTO em) throws Exception;

	public List<EmSmtTranDTO> getSmsHistory(CarDTO param) throws Exception;

	/**
	 * 총 발송량
	 * customerCode,
	 * year Month
	 * 
	 * em_smt_tran, em_smt_log_${yearMonth} 에서 이번달에 발송한 문자의 합을 구해 온다.
	 * 
	 * @param emma
	 * @return
	 * @throws Exception
	 */
	public int getNowSentSmsCnt(EmmaDTO emma) throws Exception;

	/**
	 * 회사별 최대 발송량
	 * @param emma
	 * @return
	 * @throws Exception
	 */
	public int getCustomerSerivceValue(EmmaDTO emma) throws Exception;

	public CustomerDTO getCustomer(CustomerUserDTO user) throws Exception;

}
